/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Interface;

import javax.swing.JRadioButton;

/**
 *
 * @author Vaio
 */
public class Passo2 extends javax.swing.JPanel {

    base_dados dados;

    /**
     * Creates new form Passo1
     */
    public Passo2(base_dados d) {
        initComponents();
        dados = d;
        dados.setFundos(600);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        Money_Buttons = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        money1 = new javax.swing.JRadioButton();
        money2 = new javax.swing.JRadioButton();
        money3 = new javax.swing.JRadioButton();
        money4 = new javax.swing.JRadioButton();
        money5 = new javax.swing.JRadioButton();
        money6 = new javax.swing.JRadioButton();
        money7 = new javax.swing.JRadioButton();

        setPreferredSize(new java.awt.Dimension(613, 300));

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel1.setText("Quanto está disposto á gastar??");

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Ibagens/Capturar.PNG"))); // NOI18N

        Money_Buttons.add(money1);
        money1.setSelected(true);
        money1.setText("600 ~  800,00 R$");
        money1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                money1ActionPerformed(evt);
            }
        });

        Money_Buttons.add(money2);
        money2.setText("800,00 ~ 1000,00 R$");
        money2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                money2ActionPerformed(evt);
            }
        });

        Money_Buttons.add(money3);
        money3.setText("1000,00 ~1500,00 R$");
        money3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                money3ActionPerformed(evt);
            }
        });

        Money_Buttons.add(money4);
        money4.setText("1500,00 ~ 2000,00 R$");
        money4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                money4ActionPerformed(evt);
            }
        });

        Money_Buttons.add(money5);
        money5.setText("2000,00 ~ 2500,00 R$");
        money5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                money5ActionPerformed(evt);
            }
        });

        Money_Buttons.add(money6);
        money6.setText("2500,00 ~ 3000,00R$");
        money6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                money6ActionPerformed(evt);
            }
        });

        Money_Buttons.add(money7);
        money7.setText(">3000,00 R$");
        money7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                money7ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)
                        .addGap(52, 52, 52)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(money1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGap(24, 24, 24))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(money2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGap(6, 6, 6))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(money3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGap(2, 2, 2))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(money6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGap(2, 2, 2))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(money7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGap(46, 46, 46))
                            .addComponent(money4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(money5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 305, Short.MAX_VALUE)
                        .addGap(14, 14, 14)))
                .addGap(284, 284, 284))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(money1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(money2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(money3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(money4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(money5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(money6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(money7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(48, 48, 48)))
                .addGap(80, 80, 80))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void money1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_money1ActionPerformed
        dados.setFundos(600);
    }//GEN-LAST:event_money1ActionPerformed

    private void money3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_money3ActionPerformed
        dados.setFundos(1001);
    }//GEN-LAST:event_money3ActionPerformed

    private void money2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_money2ActionPerformed
        dados.setFundos(800);
        //System.out.println(base.getFundos());
    }//GEN-LAST:event_money2ActionPerformed

    private void money4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_money4ActionPerformed
        dados.setFundos(1500);
    }//GEN-LAST:event_money4ActionPerformed

    private void money5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_money5ActionPerformed
        dados.setFundos(2000);
    }//GEN-LAST:event_money5ActionPerformed

    private void money6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_money6ActionPerformed
        dados.setFundos(2500);
    }//GEN-LAST:event_money6ActionPerformed

    private void money7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_money7ActionPerformed
        dados.setFundos(3000);
    }//GEN-LAST:event_money7ActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup Money_Buttons;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JRadioButton money1;
    private javax.swing.JRadioButton money2;
    private javax.swing.JRadioButton money3;
    private javax.swing.JRadioButton money4;
    private javax.swing.JRadioButton money5;
    private javax.swing.JRadioButton money6;
    private javax.swing.JRadioButton money7;
    // End of variables declaration//GEN-END:variables

    public JRadioButton getMoney1() {
        return money1;
    }

    public JRadioButton getMoney2() {
        return money2;
    }

    public JRadioButton getMoney3() {
        return money3;
    }

    public JRadioButton getMoney4() {
        return money4;
    }

    public JRadioButton getMoney5() {
        return money5;
    }

    public JRadioButton getMoney6() {
        return money6;
    }

    public JRadioButton getMoney7() {
        return money7;
    }
}
